package com.iot.service;

import com.iot.pojo.MTmenu;
import com.iot.pojo.MTusers;

import java.util.List;
import java.util.Map;

public interface TusersService  extends  BaseService<MTusers> {

    public MTusers login(String username, String password) throws Exception;
    public List<MTmenu> getMenuByUserId(int userId) throws Exception;



    List<Map<String,Object>> fetchByPage(Map<String, Object> map);



    public  Map<String ,Object> initList(int appId);
    Map<String, Object> initEdit(int appId);

    public Map<String,Object> getUserById(int userId);
    public int getUserByEmpId(int empId);
    public void changePwd(int userId, String oldPwd, String newPwd) throws Exception;
}
